<%-- 
    Document   : login
    Created on : 2021-12-14, 21:56:48
    Author     : Mayiyaheila
--%>

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="login.css" />
</head>
<body>

<div class="login-box" >
    <h2>★欢迎登录在线交流系统★</h2>
    <form action="loginAction.jsp" name="form1" method="post" >
        <div class="login-field">
            <input type="text" class="input1" name="Uid" required="" />
            <label>账号</label>
        </div>
        <div class="login-field">
            <input type="password" class="input1" name="password" required="" />
            <label >密码</label>
        </div>
        <div class="login-field">
            <input type="password" class="input2" name="image" required="" />
            <label >验证码</label>
            <img src="VerifyCodeServlet">
            <input type="button" value="看不清? 换一张." id="btn" class="button2">
        </div>


        <font color="red">${requestScope.imageMess}</font>
        <a href="register.jsp">没有账号，注册</a>
        <input type="submit"  value="登录" class="button">
    </form>
    <script type="text/javascript">
        document.getElementById("btn").onclick = function () {
            document.getElementsByTagName("img")[0].src =
                "VerifyCodeServlet?time=" + new Date().getTime();
        };
    </script>
</div>
</body>

<!DOCTYPE html>
<html></html>
